package org.yray.starter;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(YrayPorperties.class)
public class YrayAutoConfiguration {

    @Autowired
    private YrayPorperties javatipPorperties;

    @Bean
    public YrayDoSome strut(){
        YrayDoSome strut = new YrayDoSome();
        strut.setName(javatipPorperties.getName());
        return strut;
    }
}